<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER.'header');?>
<div id=left>
  <div>
    <h3 class=blk_t>公司新闻</h3>
    <div class=recent>
      <div class=recent_top></div>
      <div class=recent_con>
        <?php foreach($top_news as $row){?>
        <div class=recent_list><a href="<?php echo site_url(CTL_FOLDER.'news/detail/'.$row->id);?>" title="<?php echo $row->title;?>" style="color:<?php echo $row->title_color;?>"><?php echo strcut($row->title,54);?></a></div>
        <?php }?>
      </div>
      <div class=list_bot></div>
    </div>
    <div class=blankbar></div>
  </div>
  <div>
    <h3 class=blk_t>行业资讯</h3>
    <div class=list_main>
      <div class=list_con>
        <ul class=titlelist>
          <?php foreach($top_news1 as $row){?>
          <li><a href="<?php echo site_url(CTL_FOLDER.'news/detail/'.$row->id);?>" title="<?php echo $row->title;?>" style="color:<?php echo $row->title_color;?>"><?php echo strcut($row->title,54);?></a> </li>
          <?php }?>
        </ul>
        <div class=list_more><a href="<?php echo site_url(CTL_FOLDER.'news');?>"><img height=9 src="{tpl_path}images/more_37.jpg" width=32 border=0></a></div>
      </div>
      <div class=list_bot></div>
    </div>
    <div class=blankbar></div>
  </div>
  <?php $this->load->view(TPL_FOLDER.'contact_block');?>
</div>
<div id=right>
  <div>
    <h3 class=blk_t>最新产品</h3>
    <div class=newprod>
      <div class=newprod_top></div>
      <div class=newprod_con>
        <div class=pro_over>
          <table class=media_grid cellspacing=4 width="100%">
            <tbody>
              <tr>
                <?php 
		 $i = 1;
		  foreach($new_product as $row)
		  {
		  ?>
                <td><div class=newprod_list>
                    <div class=newprod_pic><a href="<?php echo site_url(CTL_FOLDER.'product/detail/'.$row->id);?>" title="<?php echo $row->title;?>"><img src="{tpl_path}images/common/loading.gif" rel="<?php echo get_real_path($row->small_pic_path);?>" alt="<?php echo $row->title;?>" class="loading_133" /></a></div>
                    <div class=newprod_name><a href="<?php echo site_url(CTL_FOLDER.'product/detail/'.$row->id);?>" title="<?php echo $row->title;?>" style="color:<?php echo $row->title_color;?>"><?php echo strcut($row->title,21);?></a></div>
                    <div class="clear"></div>
                  </div></td>
                <?php 
				if($i % 4 == 0 && $i != 8) echo '</tr><tr>';
			if($i >= 8) break; 
		  $i++;
		  }?>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class=list_bot></div>
    </div>
    <div class=blankbar></div>
  </div>
  <div>
    <h3 class=blk_t>公司介绍</h3>
    <div class="list_con company_intro">
      <a href="<?php echo site_url(CTL_FOLDER.'aboutus');?>"><img src="{tpl_path}images/common/loading.gif" rel="<?php echo get_real_path($aboutus->pic_path);?>" class="loading_150" alt="关于我们" style="margin:6px; float:left" /></a>
      <?php echo format_textarea($aboutus->summary);?>
      <div class=list_more><a href="<?php echo site_url(CTL_FOLDER.'aboutus');?>" ><img height=9 src="{tpl_path}images/more_37.jpg" width=32 border=0 /></a></div>
    </div>
    <div class=list_bot></div>
  </div>
</div>
<script language="javascript">
$(function(){
	$(".loading_133").each(function(){
		LoadImage($(this),$(this).attr("rel"),133);
	});
	$(".loading_150").each(function(){
		LoadImage($(this),$(this).attr("rel"),150);
	});
});
</script>
<?php $this->load->view(TPL_FOLDER.'footer');?>
